
public class TicketQueue {
	
	final int id;
	final char code;
	final String name;
	String desk;
	int currentTicket;
	int totalTickets;
	
	public TicketQueue(String id, String code, String name) {
		this.id = Integer.parseInt(id);
		this.code = code.charAt(0);
		this.name = name;
		
		currentTicket = 0;
		totalTickets = 0;
	}
	
	public TicketQueue(String id, String code, String name, String currentTicket, String totalTickets, String desk){
		this.id = Integer.parseInt(id);
		this.code = code.charAt(0);
		this.name = name;
		this.desk = desk;
		this.currentTicket = Integer.parseInt(currentTicket);
		this.totalTickets = Integer.parseInt(totalTickets);
	}
	
	public TicketQueue(char code, int id, String name, String desk, int currentTicket, int totalTickets){
		this.id = id;
		this.code = code;
		this.name = name;
		this.desk = desk;
		this.currentTicket = currentTicket;
		this.totalTickets = totalTickets;
	}

	public int getId() {
		return id;
	}

	public char getCode() {
		return code;
	}
	
	public String getName() {
		return name;
	}
	
	public String getDesk() {
		return desk;
	}

	public void setDesk(String desk) {
		this.desk = desk;
	}
	
	public int getCurrentTicket() {
		return currentTicket;
	}

	public void setCurrentTicket(String currentTicket) {
		this.currentTicket = Integer.parseInt(currentTicket);
	}
	
	public void setTotalTickets(String totalTickets) {
		this.totalTickets = Integer.parseInt(totalTickets);
	}

	public int getTotalTickets() {
		return totalTickets;
	}
	
	public String toString() {
		return "ID: " + id + " Codigo: " + code+ " Nome: " + name + " Current Ticket: " + currentTicket;
	}

}
